Class Kruskal

All Implemented Interfaces:
Processable<Graph,Graph>

public class Kruskal extends ExtremumSpanningTree
  • Constructor Details

    • Kruskal

      public Kruskal(ArgumentsBundle bundle)
      Public constructor for initializing the Kruskal with default conditions.
      Parameters:
      bundle - the ArgumentsBundle containing the instantiation arguments.
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • process

      public ArrayList<Graph> process(Graph graph)
      Processes data.
      Finds the Minimum Spanning Tree MST with Kruskal's algorithm.
      Parameters:
      graph - the Graph object to search through.
      Returns:
      the ArrayList of Graph objects holding the MST.